<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>留言列表</title>
    <meta name="description" content="评论列表">
    <meta name="keywords" content="评论列表">
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: 'admin'/*当前应用名*/
        };
    </script>


    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>


    <script src="/static/js/admin.js"></script>

    <script type="text/html" id="files-item-tpl">
        <form action="/plugin/hz_msg_borad/do/batchmsg" method="post">
            <input type="hidden" value="{preview_url}" name="filepath">
            <li id="saved-file{id}">
                <input type="submit" target="_blank" style="display: block;padding: 10px 15px;border:none;margin-right:5px;" value="导入"/>
            </li>
        </form>
    </script>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>评论列表</a></li>
        <li><a href="/plugin/hz_msg_borad/do/addmsg">新增评论</a></li>
        <li>
            <ul id="files" class="pic-list list-unstyled form-inline"  style="float:left;">
            </ul>
            <a  style="float:left;" href="javascript:uploadMultiFile('附件上传','#files','files-item-tpl','file');" class="btn btn-sm btn-default">选择文件</a>
        </li>
        <li><a href="/plugin/hz_msg_borad/do/downmodel">下载模板</a></li>
    </ul>
    <div class="common-form">
        <form method="post" class="js-ajax-form" action="#">
            <div class="table_list">
                <table width="100%" class="table table-hover table-bordered">
                    <thead>
                    <tr>
                        <th width="50">ID</th>
                        <th width="100">文章id</th>
                        <th width="50">头像</th>
                        <th width="150">邮箱</th>
                        <th>评论内容</th>
                        <th width="150">评论时间</th>
                        <th width="50">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="datas" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.article_id}</td>
                            <td><img src="/upload/{$vo.avatar}" alt="" style="width:50px;height:50px;"></td>
                            <td>{$vo.email}</td>
                            <td>{$vo.msg}</td>
                            <td>{$vo.createtime}</td>
                            <td><a href="/plugin/hz_msg_borad/do/delete?id={$vo.id}">删除</a></td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
                <ul class="pagination">{$page|default=''}</ul>
            </div>
        </form>
    </div>
</div>
<include file="public/scripts"/>
</body>
</html>